package com.itheima.ydd.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.itheima.ydd.entity.Cate;
import com.itheima.ydd.mapper.CateMapper;
import com.itheima.ydd.service.CateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Copyright (C), 2021-2022
 * Author: 16372
 * Date: 2022/2/24 21:03
 * FileName: CateServiceImpl
 * Description: 分类对象查询的实现类
 */
@Service
public class CateServiceImpl extends MPJBaseServiceImpl<CateMapper, Cate> implements CateService {
    @Autowired
    private CateMapper cateMapper;
    @Override
    public List<Cate> getList() {

        return cateMapper.getList();
    }


    /*@Override
    public Page<Cate> selectPages(Page page, QueryWrapper queryWrapper) {
        Page<Cate> catePage = this.selectPage(page, queryWrapper);
        return catePage;
    }*/
}
